//
//  HelpButtonView.m
//  Comma
//
//  Created by 张诗雨 on 15/1/16.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "HelpButtonView.h"
#import "Masonry.h"
#import "GlobalMacro.h"
#define WS(weakSelf) __weak __typeof(&*self)weakSelf = self;
@implementation HelpButtonView
- (instancetype)initWithFrame:(CGRect)frame didSelectImg:(NSString *)didSelectImg selectImg:(NSString *)selectImg
{
    self = [super initWithFrame:frame];
    if (self) {
        self.didSelectImg = didSelectImg;
        self.SelectImg = selectImg;
        [self setBackgroundImage:[UIImage imageNamed:didSelectImg] forState:UIControlStateNormal];
        
    }
    return self;
}

- (void)selectChangeState:(BOOL)selectButton
{
    if (selectButton) {
        [self setBackgroundImage:[UIImage imageNamed:self.SelectImg] forState:UIControlStateNormal];
    } else {
        [self setBackgroundImage:[UIImage imageNamed:self.didSelectImg] forState:UIControlStateNormal];
    }

    
}
//- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
//{
//    
//    [(NSObject *)self.target performSelector:self.action withObject:self];
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
